package pri.damai.xiaowu.anydoor.netty.handler;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import pri.damai.xiaowu.anydoor.business.BaseModel;

/**
 * 基础业务
 *
 * @description
 * @author YangXinFu
 * @date 14:12 2022/8/8
 **/
@ChannelHandler.Sharable
@Component
@Slf4j
public class BizModelHandler extends SimpleChannelInboundHandler<BaseModel> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, BaseModel model) throws Exception {
        model.process(ctx);
    }
}
